import request from './http'
// 资讯-视频
// https://api.qiecdn.com/api/video_app/index
export function getVideo() {
    return request({
        url: "/video_app/index",
        method: "post",
    })
}

// https://api.qiecdn.com/api/video_app/get_recommend_video
export function getVideoClass(data) {
    return request({
        url: "/video_app/get_recommend_video",
        method: "post",
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}
//咨询内容一数据
// https://bs3.cn/excuse/article/getArticleListByTagId
export function getInfo(){
    return request({
        url:"/excuse/article/getArticleListByTagId",
        method:"post",
        data:{"tagId":"-1","pageSize":10,"pageNum":1}
    })
}
// https://api.qiecdn.com/api/video_app/category_video_list

export function getClass(data) {
    return request({
        url: "/video_app/category_video_list",
        method: "post",
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}

// https://p7api.qiecdn.com/api/v2/community/get_list
export function getinfo() {
    return request({
        url: "https://p7api.qiecdn.com/api/v2/community/get_list",
        method: "get",
    })
}

// https://p7api.qiecdn.com/api/v2/community/detail
export function getPosts(params) {
    return request({
        url: "https://p7api.qiecdn.com/api/v2/community/detail",
        method: "get",
        params
    })
}

// https://p7api.qiecdn.com/api/v2/community/comment_list?tid=18772
export function getComment(params) {
    return request({
        url: "https://p7api.qiecdn.com/api/v2/community/comment_list",
        method: "get",
        params
    })
}
// https://bsty4.com/excuse/article/getArticleListByTagId
//阿尔基隆
export function getAejl(){
    return request({
        url:"/excuse/article/getArticleListByTagId",
        method:"post",
        data:{"tagId":"451882","pageSize":10,"pageNum":1}
    })
}
// 澳超
export function getAc(){
    return request({
        url:"/excuse/article/getArticleListByTagId",
        method:"post",
        data:{"tagId":"451881","pageSize":10,"pageNum":1}
    })
}
// 泰山队
export function getMounttai(){
    return request({
        url:"/excuse/article/getArticleListByTagId",
        method:"post",
        data:{"tagId":"451840","pageSize":10,"pageNum":1}
    })
}
// 新疆男篮
export function getXinjiang(){
    return request({
        url:"/excuse/article/getArticleListByTagId",
        method:"post",
        data:{"tagId":"451841","pageSize":10,"pageNum":1}
    })
}

// 视频评论
// https://api.qiecdn.com/api/video_app/get_video_comment
export function getVideoComment(data){
    return request({
        url:"/video_app/get_video_comment",
        method:"post",
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}

// 视频-相关视频
// https://api.qiecdn.com/api/video_app/get_similar_video_list
export function getVideoWith(data){
    return request({
        url:"/video_app/get_similar_video_list",
        method:"post",
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}

// 视频-详情
// https://api.qiecdn.com/api/video_app/detail
export function getVideoDetails(data){
    return request({
        url:"/video_app/detail",
        method:"post",
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}